<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 创建数组的三种方法
    // var cars = ['宝马','奔驰','奥迪','大众','保时捷','捷豹'] ;    
    // var array = new Array('宝马','奔驰','奥迪','大众','保时捷','捷豹');
    

    // console.log(array);
    // console.log(array.length);
    // for(var i = 0;i < array.length;i++){
    //     var num = array[i];
    //     console.log(array[1])
    // }
</script>
</html>